using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartLink.Infrastructure
{
    public static class StringHelper
    {
        /// <summary>
        /// 正对都好分割的字符串
        /// </summary>
        /// <param name="convertStr"></param>
        /// <returns></returns>
        public static List<int> ToListInt(this string convertStr)
        {
            List<int> reList = new List<int>();
            if (string.IsNullOrEmpty(convertStr))
                return reList;

            if (convertStr.Length > 0)
            {
                string[] ss = convertStr.Split(',');
                foreach (string s in ss)
                {
                    reList.Add(Convert.ToInt32(s));
                }
            }
            return reList;
        }




    }
}
